package cn.ac.cintcm.service.impl;

import java.util.List;

import cn.ac.cintcm.dao.FeedbackDao;
import cn.ac.cintcm.dao.UserDao;
import cn.ac.cintcm.model.FeedBack;
import cn.ac.cintcm.service.FeedbackManager;

public class FeedbackManagerImpl extends GenericManagerImpl<FeedBack, Long> implements FeedbackManager {

	private FeedbackDao fd = null;
	
	
	public FeedbackManagerImpl(FeedbackDao fd) {
		super(fd);
		this.fd = fd;
	}

	public int getEffectiveCount(String userId) {

		return fd.getEffectiveCount(userId);
	}

	public int getProblematicCount(String userId) {

		return fd.getProblematicCount(userId);
	}

	public List<FeedBack> getUnread(String username) {

		List<FeedBack> fbs = fd.getUnread(username);
		return fbs;
	}
	
	public void clearUnread(String userId) {
		fd.clearUnread();
	}

	public int getUnreadCount(String userId) {

		return fd.getUnreadCount(userId);
	}

	public List<FeedBack> getByTherapy(Long id) {
		return fd.getByTherapy(id);
	}

	public List<FeedBack> getAll(String username) {
		
		return fd.getAll(username);
	}


}
